/**
 *
 *
 * @description
 * @author YangXinFu
 * @date 10:53 2022/6/27
 **/
public class MonitorDemo {

    static Object lock;
    static int i = 0;

    public static void main(String[] args) throws InterruptedException {

        Thread.sleep(5000);
        lock = new Object();
//
//        System.out.println(ClassLayout.parseInstance(lock).toPrintable());


//        System.out.println(ClassLayout.parseInstance(lock).toPrintable());

//        lock.hashCode();

//        System.out.println(ClassLayout.parseInstance(lock).toPrintable());

        synchronized (lock) {
            i ++;
        }

//        System.out.println(ClassLayout.parseInstance(lock).toPrintable());
    }

}
